home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
59338
/
59338.xpi
/
chrome
/
global
/
button.css
< prev
next >
Wrap
Cascading Style Sheet File
|
2010-02-13
|
13KB
|
454 lines
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Mozilla Communicator client code, released
* March 31, 1998.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1998-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Joe Hewitt (hewitt@netscape.com)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
/* ===== button.css =====================================================
== Styles used by the XUL button element.
======================================================================= */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* :::::::::: button :::::::::: */
button {
-moz-appearance: none;
-moz-border-image: url("chrome://browser/skin/tabbrowser/but_1.png") 2 6 0 / 2px 6px 0px;
min-width: 6.3em;
min-height:27px;
max-height:27px;
height:27px;
/*margin: 5px;*/
padding: 0px 10px 5px 10px;
background-color: transparent;
color: #000;
}
.button-box {
-moz-appearance: none;
padding:0 !important;
}
.button-icon {
padding-top:2px !important;
-moz-margin-end: 2px;
}
.button-text {
padding-top:2px !important;
margin: 0 !important;
text-align: center;
}
/* .......... focused state .......... */
button:focus {
-moz-border-image: url("chrome://browser/skin/tabbrowser/but_f.png") 2 6 0 / 2px 6px 0px;
}
button:focus > .button-box {
/* border: 1px dotted ThreeDDarkShadow; */
}
/* .......... default state .......... */
button[default="true"] {
-moz-border-image: url("chrome://browser/skin/tabbrowser/but_f.png") 2 6 0 / 2px 6px 0px;
}
/* .......... hover state .......... */
button:hover {
-moz-border-image: url("chrome://browser/skin/tabbrowser/but_h.png") 2 6 0 / 2px 6px 0px;
}
/* .......... active/open/checked state .......... */
button:hover:active,
button[open="true"],
button[checked="true"] {
-moz-border-image: url("chrome://browser/skin/tabbrowser/but_a.png") 2 6 0 / 2px 6px 0px;
}
button:hover:active > .button-box,
button[open="true"] > .button-box,
button[checked="true"] > .button-box {
padding:0 !important;
}
/* .......... disabled state .......... */
button[disabled="true"] {
-moz-border-image: url("chrome://browser/skin/tabbrowser/but_1.png") 2 6 0 / 2px 6px 0px;
color: GrayText;
}
button[disabled="true"]:hover:active {
-moz-border-image: url("chrome://browser/skin/tabbrowser/but_a.png") 2 6 0 / 2px 6px 0px;
color: GrayText;
}
button[disabled="true"] > .button-box {
/*padding-top: 1px !important;
padding-bottom: 2px !important;
-moz-padding-start: 3px !important;
-moz-padding-end: 4px !important;*/
}
/* ::::: menu/menu-button buttons ::::: */
button[type="menu-button"] {
-moz-box-align: center;
-moz-box-pack: center;
margin: 0;
border: none;
}
.button-menu-dropmarker,
.button-menubutton-dropmarker {
-moz-appearance: none !important;
-moz-margin-start: 5px;
-moz-margin-end: 0px;
}
.button-menubutton-dropmarker[open="true"] {
margin-top: 2px;
margin-bottom: 0px;
-moz-margin-start: 5px;
-moz-margin-end: 0px;
}
/* ::::: plain buttons ::::: */
button.plain {
border: 0px !important;
margin: 0px !important;
padding: 0px !important;
}
button[type="disclosure"] {
border: 0px !important;
margin: 0px !important;
padding: 0px !important;
-moz-appearance: none;
list-style-image: url("chrome://global/skin/tree/twisty-clsd.png");
min-width: 0px !important;
background-color: transparent;
}
button[type="disclosure"][open="true"] {
list-style-image: url("chrome://global/skin/tree/twisty-open.png");
}
/*
* KDE Icon Styles
*/
button[icon="accept"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/dialog-ok.png");
}
button[id="checkUpdatesAllButton"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/system_software_update.png");
}
button[id="showUpdateInfoButton"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/help-about.png");
}
button[id="installUpdatesAllButton"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/kget.png");
}
button[id="addonInstallButton"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/system_software_update.png");
}
/* Preferences */
button[id="useCurrent"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/news.png");
}
button[id="useBookmark"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/bookmark_folder.png");
}
button[id="restoreDefaultHomePage"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/document-revert.png");
}
button[id="manageAddons"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/preferences_system.png");
}
button[id="chooseFolder"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/document-open.png");
}
button[id="chooseLanguage"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/locale.png");
}
button[id="advancedJSButton"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/exec.png");
}
button[id="popupPolicyButton"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/list-remove.png");
}
button[id="addonExceptions"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/list-remove.png");
}
button[id="passwordExceptions"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/list-remove.png");
}
button[icon="accept"] {
-moz-box-ordinal-group: 1;
}
button[icon="accept"][disabled="true"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/disabled/16/dialog-ok.png");
}
button[icon="cancel"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/dialog-cancel.png");
}
button[icon="cancel"] {
-moz-box-ordinal-group: 2;
}
button[icon="cancel"][disabled="true"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/disabled/16/dialog-cancel.png");
}
button[icon="help"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/help-contents.png");
}
button[icon="help"][disabled="true"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/disabled/16/help-contents.png");
}
button[icon="open"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/document-open.png");
}
button[icon="open"][disabled="true"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/disabled/16/document-open.png");
}
button[icon="save"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/document-save.png");
}
button[icon="save"][disabled="true"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/disabled/16/document-save.png");
}
button[icon="find"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/edit-find.png");
}
button[icon="find"][disabled="true"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/disabled/16/edit-find.png");
}
button[icon="clear"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/edit-clear.png");
}
button[icon="clear"][disabled="true"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/disabled/16/edit-clear.png");
}
button[icon="yes"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/dialog-ok.png");
}
button[icon="yes"][disabled="true"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/disabled/16/dialog-ok.png");
}
button[icon="yes"] {
-moz-box-ordinal-group: 1;
}
button[icon="no"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/dialog-cancel.png");
}
button[icon="no"] {
-moz-box-ordinal-group: 2;
}
button[icon="no"][disabled="true"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/disabled/16/dialog-cancel.png");
}
button[icon="apply"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/dialog-ok-apply.png");
}
button[icon="apply"][disabled="true"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/disabled/16/dialog-ok-apply.png");
}
button[icon="close"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/dialog-close.png");
}
button[icon="close"][disabled="true"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/disabled/16/dialog-close.png");
}
button[icon="print"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/document-print.png");
}
button[icon="print"][disabled="true"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/disabled/16/document-print.png");
}
button[icon="add"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/list-add.png");
}
button[icon="add"][disabled="true"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/disabled/16/list-add.png");
}
button[icon="remove"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/list-remove.png");
}
button[icon="remove"][disabled="true"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/disabled/16/list-remove.png");
}
button[icon="refresh"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/view-refresh.png");
}
button[icon="refresh"][disabled="true"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/disabled/16/view-refresh.png");
}
button[icon="revert"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/document-revert.png");
}
button[icon="revert"][disabled="true"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/disabled/16/document-revert.png");
}
button[icon="go-forward"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/go-next.png");
}
button[icon="go-forward"][disabled="true"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/disabled/16/go-next.png");
}
button[icon="go-forward"][chromedir="rtl"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/go-previous.png");
}
button[icon="go-forward"][chromedir="rtl"][disabled="true"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/disabled/16/go-previous.png");
}
button[icon="go-back"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/go-previous.png");
}
button[icon="go-back"][disabled="true"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/disabled/16/go-previous.png");
}
button[icon="go-back"][chromedir="rtl"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/go-next.png");
}
button[icon="go-back"][chromedir="rtl"][disabled="true"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/disabled/16/go-next.png");
}
button[icon="properties"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/configure.png");
}
button[icon="properties"][disabled="true"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/disabled/16/configure.png");
}
button[icon="select-font"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/preferences-desktop-font.png");
}
button[icon="select-font"][disabled="true"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/disabled/16/preferences-desktop-font.png");
}
button[icon="select-color"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/color-picker.png");
}
button[icon="select-color"][disabled="true"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/disabled/16/color-picker.png");
}
button[icon="network"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/16/network-workgroup.png");
}
button[icon="network"][disabled="true"] .button-icon {
list-style-image: url("chrome://browser/skin/icons/disabled/16/network-workgroup.png");
}